<?php

/**
 * ShippingAddressDao
 *
 * @author gxl
 * @version
 */

require_once BaseUtil::getModulePath("base") . '/models/BaseDao.php';

class AddressDao extends BaseDao {

    protected $_name;

    public function _setup() {
        $this->_name=$this->prefix() . "addresses";
        parent::_setup();
    }

    public function addAddress($address) {
        return $this->insertData($address);
    }

    public function updateAddress($id, $address) {
        $where =  $this->db_w->quoteInto('id = ?', $id);
        $this->updateData($address, $where);
    }
}